@tool
extends EditorScript

func _run():
	var base_path := ProjectSettings.globalize_path("res://movie/")
	var timestamp := Time.get_datetime_string_from_system().replace(":", "_").replace("T", "_")
	var movie_path := base_path + "movie_" + timestamp + ".avi"

	ProjectSettings.set_setting("editor/movie_writer/movie_file", movie_path)
	ProjectSettings.save()
